// ========================================================
// Des：地图摄像机
// Autor：Mr.H 
// CreateTime：2024/04/06 21:35:29
// 版 本：v 1.0
// ========================================================
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class CameraMove : MonoBehaviour
{
    //跟随目标
    public Transform target;
    [Header("相机高度")]
    public float H = 10;//相机高度
    private Vector3 pos;

    
    // Update is called once per frame
    void LateUpdate()
    {
        if (target == null)
        {
            return;
        }
        pos.x = target.position.x;
        pos.z = target.position.z;
        pos.y = H;
        transform.position = pos;


    }
}
